<template>
  <van-dialog
      v-model:show="show"
      :title="title"
      :message="message"
      :show-cancel-button="false"
      confirm-button-text="我知道了"
  />
</template>

<script setup lang="ts">
import { ref } from 'vue'

const props = defineProps({
  title: {
    type: String,
    default: '关于我们'
  },
  message: {
    type: String,
    required: true
  }
})

const show = ref(false)

const open = () => {
  show.value = true
}

defineExpose({ open })
</script>
